﻿<?xml version="1.0" encoding="utf-8"?>
<Window
    x:Class="Automator.Tasks.Windows.CallTaskEditWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:ctrls="clr-namespace:Automator.Tasks.Core.UI;assembly=Automator.Tasks.Core"
    Title="Edit"
    ShowInTaskbar="False"
    WindowStartupLocation="CenterOwner"
    ResizeMode="CanResize"
    MinWidth="372"
    MinHeight="280"
    Background="{x:Static SystemColors.ControlBrush}"
    Width="472"
    Height="380">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition
                Height="Auto" />
            <RowDefinition
                Height="*" />
            <RowDefinition
                Height="Auto" />
        </Grid.RowDefinitions>
        <ctrls:EditTaskHeader
            x:Name="header"
            Grid.Row="0" />
        <DockPanel
            x:Name="pnlContent"
            LastChildFill="True"
            Grid.Row="1">
            <TextBlock
                Margin="4"
                Text="Executable file: "
                DockPanel.Dock="Top" />
            <DockPanel
                LastChildFill="True"
                DockPanel.Dock="Top">
                <Button
                    x:Name="btnOpen"
                    Click="BtnOpen_Click"
                    DockPanel.Dock="Right"
                    Margin="0,4,4,4"
                    ToolTip="Choose file"
                    Padding="4,1,4,1">
                    <Image
                        Source="/Automator.Tasks;component/resources/btnOpen.png"
                        Width="16"
                        Height="16" />
                </Button>
                <TextBox
                    x:Name="edtExeFile"
                    Margin="4"
                    VerticalContentAlignment="Center" TabIndex="0" />
            </DockPanel>
            <CheckBox
                x:Name="chkWait"
                DockPanel.Dock="Bottom"
                Content="Pause workflow while executing"
                TabIndex="2"
                Margin="4,8,4,4" />
            <TextBlock
                Margin="4"
                Text="Arguments:"
                DockPanel.Dock="Top" />
            <TextBox
                x:Name="edtArguments"
                Margin="4"
                TextWrapping="Wrap"
                TabIndex="1"
                VerticalScrollBarVisibility="Auto" />
        </DockPanel>
        <ctrls:EditTaskFooter
            x:Name="footer"
            Grid.Row="2" />
    </Grid>
</Window>